package com.lyfam.vaadin.model;

import java.io.Serializable;

import com.lyfam.annotation.UIBean;
import com.lyfam.annotation.UIField;
import com.lyfam.annotation.UIField.UIType;
import com.lyfam.vaadin.view.form.ClientCompanyDataProvider;

@UIBean(packageName="com.lyfam.vaadin.formfactory", className="ClientFormFactory")
public class Client implements Serializable
{
    @UIField(label="Company Name", type=UIType.SELECT,
            dataProvider=ClientCompanyDataProvider.class)
    private String name;
    
    private String id;

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    @Override
    public String toString()
    {
        return "Client [" + (id != null ? "id=" + id + ", " : "") + (name != null ? "name=" + name : "") + "]";
    }
}
